package com.ly.houses.mapper;

import com.ly.houses.model.Plate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlateMapper {
   void  batchSave(List<Plate> list);
   void  batchUpdate(List<Plate> list);
   List<Plate>  selectAllPlace(Long areaId);
   Plate  getByName(@Param("name") String name,@Param("areaId") Long areaId);
   List<Plate>  listPlateByName(@Param("name") String name,@Param("areaId")Long areaId);
   Integer getAvgPrice(Long plateId);
   void updateAvgPrice(List<Plate> list);
   List<String> selectAllPlaceName(Long areaId);
   void removeAll(List<Plate> list);

}
